package com.magold.game;

import org.andengine.engine.handler.IUpdateHandler;

public class TimeRecorder implements IUpdateHandler {
	private double mSeconds;
	
	public TimeRecorder() {
	}
	
	@Override
	public void onUpdate(float pSecondsElapsed) {
		mSeconds += pSecondsElapsed;
	}

	@Override
	public void reset() {
		mSeconds = 0;
	}
	
	public long getMilliseconds() {
		return (long) (mSeconds * 1000);
	}
	
	public double getSeconds() {
		return mSeconds;
	}
	
}
